import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/getinfo_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/getinfo_entity.g.dart';

@JsonSerializable()
class GetinfoEntity {
	String? msg;
	int? code;
	List<String>? permissions;
	List<String>? roles;
	GetinfoUser? user;

	GetinfoEntity();

	factory GetinfoEntity.fromJson(Map<String, dynamic> json) => $GetinfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $GetinfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetinfoUser {
	String? createBy;
	String? createTime;
	GetinfoUserParams? params;
	String? userType;
	int? userId;
	String? userName;
	String? nickName;
	String? email;
	String? phonenumber;
	String? sex;
	String? avatar;
	String? password;
	String? status;
	String? delFlag;
	String? loginIp;
	List<GetinfoUserRoles>? roles;
	bool? admin;

	GetinfoUser();

	factory GetinfoUser.fromJson(Map<String, dynamic> json) => $GetinfoUserFromJson(json);

	Map<String, dynamic> toJson() => $GetinfoUserToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetinfoUserParams {


	GetinfoUserParams();

	factory GetinfoUserParams.fromJson(Map<String, dynamic> json) => $GetinfoUserParamsFromJson(json);

	Map<String, dynamic> toJson() => $GetinfoUserParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetinfoUserRoles {
	GetinfoUserRolesParams? params;
	int? roleId;
	String? roleName;
	String? roleKey;
	String? roleSort;
	String? dataScope;
	bool? menuCheckStrictly;
	bool? deptCheckStrictly;
	String? status;
	bool? flag;
	bool? admin;

	GetinfoUserRoles();

	factory GetinfoUserRoles.fromJson(Map<String, dynamic> json) => $GetinfoUserRolesFromJson(json);

	Map<String, dynamic> toJson() => $GetinfoUserRolesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetinfoUserRolesParams {


	GetinfoUserRolesParams();

	factory GetinfoUserRolesParams.fromJson(Map<String, dynamic> json) => $GetinfoUserRolesParamsFromJson(json);

	Map<String, dynamic> toJson() => $GetinfoUserRolesParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}